package cn.edu.tju.fctl.util;

import java.util.Collection;

/**
 * Created by catold on 15/12/17.
 */
public class RoleUtil {
//    NORMAL_USER：普通员工
//    DEPART_MASTER：部门主管
//    STATISTIC_USER：统计员工
//    DEPUTY_MANAGER：副经理
//    GENERAL_MANAGER：总经理
//    public static final String NORMAL_USER = "normal_user";
//    public static final String DEPART_MASTER = "depart_master";
//    public static final String STATISTIC_USER = "statistic_user";
//    public static final String DEPUTY_MANAGER = "depart_master";
//    public static final String GENERAL_MANAGER = "depart_master";
    public static final String NORMAL_USER = "normal_user";
    public static final String DEPART_MASTER = "depart_master";
    public static final String STATISTIC_USER = "statistic_user";
    public static final String DEPUTY_MANAGER = "deputy_manager";
    public static final String GENERAL_MANAGER = "general_manager";
    public static final int NORMAL_USER_VALUE = 0;

    public static String getZhName(String role){
        String roleZh = "";
        if("normal_user".equals(role)){
            roleZh = "普通员工";
        } else if ("depart_master".equals(role)) {
            roleZh = "部门主管";
        } else if ("statistic_user".equals(role)) {
            roleZh = "统计部门";
        } else if ("general_manager".equals(role)) {
            roleZh = "副经理";
        } else if ("deputy_manager".equals(role)) {
            roleZh = "总经理";
        }
        return roleZh;
    }
}
